package com.okaixz.client.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.okaixz.common.constant.CommonConstants;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author cdz
 * @since 2025-06-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("kb_customer_assistant")
@ApiModel(value="KbCustomerAssistant对象", description="")
public class KbCustomerAssistant implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    @ApiModelProperty(value = "用户id")
    private String userId;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "标签名称")
    private String kbAssistantName;

    private String assistantUrl;

    @ApiModelProperty(value = "1男2女0无性别")
    private Integer sex;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "组合ids")
    private String assistantIds;

    @ApiModelProperty(value = "输出风格组合")
    private String assistantStyls;


    public KbAssistant transfornToKbAssistant(){
        KbAssistant kbAssistant = new KbAssistant();
        kbAssistant.setId(this.id+ CommonConstants.SYSTEM_ASSISTANT_OFFSET);
        kbAssistant.setName(this.kbAssistantName);
        kbAssistant.setIcon(this.assistantUrl);
        kbAssistant.setSex(this.sex);
        kbAssistant.setOutStyle(this.assistantStyls);
        kbAssistant.setStatus(this.status);
        return kbAssistant;
    }


}
